package com.ea.demo.autogenapi.user.vo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.util.Date;
import com.ea.demo.autogenapi.base.DateJsonDeserializer;
import com.ea.demo.autogenapi.base.DateJsonSerializer;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import org.springframework.format.annotation.DateTimeFormat;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import com.ea.demo.autogenapi.base.vo.BaseVo;
import com.ea.demo.autogenapi.base.vo.PageParam;
/**
  * <p>
  * AutoGenerator Api接口封装类
  * </p>
  * @author AutoGenerator Model Class
  * @since 2020-03-27
  */
public class FrontUserApiWrapper {


    @Data
    @ApiModel(value="FrontUser对象", description="前端用户")
    public static class FrontUserVo extends BaseVo {

        @ApiModelProperty(value = "主键id")
        private Integer id;
        @ApiModelProperty(value = "用户名")
        private String userName;
        @ApiModelProperty(value = "中文名")
        private String realName;
        @ApiModelProperty(value = "电话")
        private String telephone;
        @ApiModelProperty(value = "身份证号")
        private String idNo;
        @ApiModelProperty(value = "性别: 0-男，1-女")
        private Integer sex;
        @ApiModelProperty(value = "密码")
        private String password;
        @ApiModelProperty(value = "是否删除：0-未删除，1-已删除")
        private Integer isDelete;
        @ApiModelProperty(value = "创建时间")
        @JsonSerialize(using = DateJsonSerializer.class)
        @JsonDeserialize(using = DateJsonDeserializer.class)
        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private Date createTime;
        @ApiModelProperty(value = "创建人")
        private String createBy;
        @ApiModelProperty(value = "更新时间")
        @JsonSerialize(using = DateJsonSerializer.class)
        @JsonDeserialize(using = DateJsonDeserializer.class)
        @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
        private Date updateTime;
        @ApiModelProperty(value = "更新人")
        private String updateBy;
    }

    @Data
    @ApiModel(value="FrontUser查询对象", description="前端用户")
    public static class FrontUserSearchVo extends PageParam {

    }

}